package com.mobile.persistent.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mobile.persistent.base.BaseEntity;

/**
 * @author qingqiu
 * 仓库
 */
@Entity
@Table(name="storehouse")
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
public class Storehouse extends BaseEntity {

	private static final long serialVersionUID = 1L;
	/**
	 * 仓库名称
	 */
	private String storeName;
	/**
	 * 仓库地址
	 */
	private String address;
	/**
	 * 仓库简称
	 */
	private String storeAlias;
	/**
	 * 责任人
	 */
	private String responsibility;
	/**
	 * 责任人电话
	 */
	private String tel;
	/**
	 * 责任人手机
	 */
	private String mobile;
	/**
	 * 是否是默认仓库
	 */
	private byte defaultStore;
	/**
	 * 备注
	 */
	private String remark;
	
	@Column(name="storeName", columnDefinition="varchar(20)", nullable=false)
	public String getStoreName() {
		return storeName;
	}
	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}
	@Column(name="address", columnDefinition="varchar(100)", nullable=false)
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	@Column(name="storeAlias", columnDefinition="varchar(10)")
	public String getStoreAlias() {
		return storeAlias;
	}
	public void setStoreAlias(String storeAlias) {
		this.storeAlias = storeAlias;
	}
	@Column(name="responsibility", columnDefinition="varchar(10)", nullable=false)
	public String getResponsibility() {
		return responsibility;
	}
	public void setResponsibility(String responsibility) {
		this.responsibility = responsibility;
	}
	@Column(name="tel", columnDefinition="varchar(18)")
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	@Column(name="mobile", columnDefinition="varchar(13)")
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	@Column(name="defaultStore", columnDefinition="bit", nullable=false)
	public byte getDefaultStore() {
		return defaultStore;
	}
	public void setDefaultStore(byte defaultStore) {
		this.defaultStore = defaultStore;
	}
	@Column(name="remark", columnDefinition="varchar(200)")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
